
<div class="content" class="n-size-normal">
	<?php
	if(!empty($data['role'])){
	foreach($data['role'] as $key=>$val){
		$privates = explode(',',$val['private_ids']);
	?>
	<dl class="n-box n-sep-top">
		<dt class="n-box-head"><?=$val['name']?></dt>
		<dd class="n-box-body clearfix">
			<?php
			if(!empty($data['private'])){
			foreach($data['private'] as $key1=>$val1){
				if(in_array($val1['id'],$privates)){
				?>
				<div class="n-notice n-box-float n-sep">
					<?=n_ui(n_url('rbac','sitePrivateToggle',array('private'=>$val1['id'],'role'=>$val['id'],'scode'=>$data['scode'])),$val1['name'])?>			
				</div>
				
				<?php
				}else{
				?>
				<div class="n-warn n-box-float n-sep">
					<?=n_ui(n_url('rbac','sitePrivateToggle',array('private'=>$val1['id'],'role'=>$val['id'],'scode'=>$data['scode'])),$val1['name'])?>
				</div>

				<?php
				}
			?>
			<?php
			}
			}
			?>
		</dd>
	</dl>
	<?php
	}
	}
	?>

</div>		
